<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>propsData Option 全局扩展的数据传递</title>
	<script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
	<h1>propsData Option 全局扩展的数据传递</h1>
	<hr>
	<div id="app">
        
	</div>
	<header></header>
    

</body>
<script type="text/javascript">
var header_a = Vue.extend({
	template:`<p>{{message}}--{{a}}</p>`,
	data:function () {
		return{
			message:"hello ,I am header！"
		}
	},
	props:['a']
})
new header_a({propsData:{b:1,a:4}}).$mount('header');
var app = new Vue({
	el:'#app',
	data:{
		message:'componentA'
	}   
})

</script>
</html>